import { http } from '@/utils/http'

// 获得地区树
export const ApiGetAreaTree = () => {
  return http.get('/app-api/system/area/tree')
}

// 根据字典类型查询字典数据信息
export const ApiGetDictData = (dictType: string) => {
  return http.get('/app-api/system/dict-data/type', {type: dictType})
}

export const ApiParentAreaByCode = (code: string) => {
  return http.get('/app-api/system/area/get-by-code', {code})
}
